package cn.lingyangwl.agile.dynamic.config.model;

import cn.lingyangwl.agile.model.module.tenant.TenantContext;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息推送队列
 * @author shenguangyang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ConfigMsg {
    /**
     * 租户id
     */
    private String tenantId;
    private String mainTenantId;

    /**
     * 配置键值
     */
    private String configKey;

    /**
     * 配置值
     */
    private String configValue;

    /**
     * 动作类型
     */
    private ActionTypeEnum actionType;

    public String getMainTenantId() {
        return TenantContext.get().getMainTenantId();
    }
}
